<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt"%>
<%@ taglib prefix="wr_fn" uri="http://njo.org/taglib/functions"%>
<table width="98%">
  <tr>
    <td class="left"><a name="title"><b>创建Maintenance程序</b></a></td>
  </tr>
</table>
<c:set var="actionMessages" value="${wr_fn:amessages(pageContext, '')}"/>
<c:forEach items="${actionMessages}" var="item">
    <div class="error-content">${wr_fn:message(pageContext, item.key, item.values)}</div>
</c:forEach>

<form id="f2" name="f2" action="${pageContext.request.contextPath}/processor.dts.gt.newmaintenance.tiles" method="post">
<table class="forum" width="98%">
<col width="100"/>
<col width="*"/>
<tbody>
  <tr>
    <th colspan="2" align="left">概要</th>
  </tr>
  <tr>
    <td>程序名称:</td>
    <td><input type="text" name="field_set_name"/></td>
  </tr>
    <td>描述:</td>
    <td><textarea name="description"></textarea></td>
  </tr>
</tbody>
</table>



<table class="forum" width="98%">
<col width="40"/>
<col width="200"/>
<col width="150"/>
<col width="80"/>
<col width="*"/>
<tbody id="_fields">
  <tr>
    <th><a title="追加" href="javascript:addRow();"><img src="${pageContext.request.contextPath}/images/add.png" border="0"/></a></th>
    <th>物理名称</th>
    <th>逻辑名称</th>
    <th>类型</th>
    <th>列表数据</th>
    <th>描述</th>
  </tr>
  <tr id="field_x" class="even">
    <td class="center" colspan="6">没有设定字段</td>
  </tr>
</table>

<div id="field_editor" style="background-color: #ffffff; left: 20px; top: 10px; height: 320px; width: 480px; overflow: auto; position: absolute; visibility: visible;display: none;" onmouseout="javascript:hideEditor(event, 'field_editor');">
</div>
<div id="fk_editor" style="background-color: #ffffff; left: 20px; top: 10px; height: 320px; width: 480px; overflow: auto; position: absolute; visibility: visible;display: none;" onmouseout="javascript:hideEditor(event, 'fk_editor');">
</div>
<div id="fk1_editor" style="background-color: #ffffff; left: 20px; top: 10px; height: 320px; width: 480px; overflow: auto; position: absolute; visibility: visible;display: none;" onmouseout="javascript:hideEditor(event, 'fk1_editor');">
</div>

<table class="forum" width="98%">
<col width="*"/>
<col width="5"/>
<tbody>
  <tr>
    <th>Field</th>
    <th>&nbsp;</th>
  </tr>
  <tr class="${(1%2==0) ? 'even' : 'odd'}">
    <td>
    <table>
      <tr>
        <td>
          <table>
            <tr>
              <td nowrap class="text-caption1-normal">字段名称</td>
              <td nowrap><input type="text" name="field_name" ></td>
              <td nowrap class="text-caption1-normal">字段类型</td>
              <td><select name="field_type" onchange="javascript:return type_chnage()">
                <option value=""></option>
                <option value="String">String&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
                <option value="byte">byte</option>
                <option value="short">short</option>
                <option value="int">int</option>
                <option value="long">long</option>
                <option value="float">float</option>
                <option value="double">double</option>
                <option value="Date">Date</option>
              </select>
              </td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap><input type="text" name="type_Message" size="17" maxlength="20"/></td>
            </tr>
            <tr>
              <td nowrap class="text-caption1-normal">explain</td>
              <td nowrap><input type="text" name="explain" size="16" maxlength="60"></td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="primaryKey" value="true">主键</td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="required" value="true">必须输入</td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap><input type="text" name="required_Message" size="17" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap></td>
            </tr>
          </table>
        </td>
        <td>
          <table id="remoteData_string" style="DISPLAY:none">
            <tr>
              <td nowrap class="text-caption1-normal">characterType_Mask</td>
              <td nowrap><input type="text" name="characterType_Mask" size="16" maxlength="30"></td>
              <td nowrap class="text-caption1-normal">最小长度</td>
              <td nowrap><input type="text" name="minLength" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Alphabet" value="true">英文</td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Numeric" value="true">数字</td>
              <td nowrap></td>
              <td nowrap><input type="text" name="minLength_Message" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Sbc" value="true">双字节(Sbc)</td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Symbol" value="true">characterType_Symbol</td>
              <td nowrap class="text-caption1-normal">最大长度</td>
              <td nowrap><input type="text" name="maxLength" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="trimSpace" value="true">trimSpace</td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Mail" value="true">characterType_Mail</td>
              <td nowrap></td>
              <td nowrap><input type="text" name="maxLength_Message" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap><input type="text" name="characterType_Message" size="16" maxlength="20"></td>
              <td nowrap></td>
              <td nowrap></td>
            </tr>
          </table>
          <table id="remoteData_numeric" style="DISPLAY:none">
            <tr>
              <td nowrap class="text-caption1-normal">最小值</td>
              <td nowrap><input type="text" name="minValue" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap><input type="text" name="minValue_Message" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap class="text-caption1-normal">最大值</td>
              <td nowrap><input type="text" name="maxValue" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap><input type="text" name="maxValue_Message" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    
    
    </td>
    <td>+ - </td>
  </tr>
  <tr class="${(2%2==0) ? 'even' : 'odd'}">
    <td>
    <table>
      <tr>
        <td>
          <table>
            <tr>
              <td nowrap class="text-caption1-normal">字段名称</td>
              <td nowrap><input type="text" name="field_name" ></td>
              <td nowrap class="text-caption1-normal">字段类型</td>
              <td><select name="field_type" onchange="javascript:return type_chnage()">
                <option value=""></option>
                <option value="String">String&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
                <option value="byte">byte</option>
                <option value="short">short</option>
                <option value="int">int</option>
                <option value="long">long</option>
                <option value="float">float</option>
                <option value="double">double</option>
                <option value="Date">Date</option>
              </select>
              </td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap><input type="text" name="type_Message" size="17" maxlength="20"/></td>
            </tr>
            <tr>
              <td nowrap class="text-caption1-normal">explain</td>
              <td nowrap><input type="text" name="explain" size="16" maxlength="60"></td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="primaryKey" value="true">主键</td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="required" value="true">必须输入</td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap><input type="text" name="required_Message" size="17" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap></td>
              <td nowrap></td>
            </tr>
          </table>
        </td>
        <td>
          <table id="remoteData_string" style="DISPLAY:none">
            <tr>
              <td nowrap class="text-caption1-normal">characterType_Mask</td>
              <td nowrap><input type="text" name="characterType_Mask" size="16" maxlength="30"></td>
              <td nowrap class="text-caption1-normal">最小长度</td>
              <td nowrap><input type="text" name="minLength" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Alphabet" value="true">英文</td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Numeric" value="true">数字</td>
              <td nowrap></td>
              <td nowrap><input type="text" name="minLength_Message" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Sbc" value="true">双字节(Sbc)</td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Symbol" value="true">characterType_Symbol</td>
              <td nowrap class="text-caption1-normal">最大长度</td>
              <td nowrap><input type="text" name="maxLength" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="trimSpace" value="true">trimSpace</td>
              <td nowrap class="text-value-string1-normal"><input type="checkbox" name="characterType_Mail" value="true">characterType_Mail</td>
              <td nowrap></td>
              <td nowrap><input type="text" name="maxLength_Message" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap><input type="text" name="characterType_Message" size="16" maxlength="20"></td>
              <td nowrap></td>
              <td nowrap></td>
            </tr>
          </table>
          <table id="remoteData_numeric">
            <tr>
              <td nowrap class="text-caption1-normal">最小值</td>
              <td nowrap><input type="text" name="minValue" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap><input type="text" name="minValue_Message" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap class="text-caption1-normal">最大值</td>
              <td nowrap><input type="text" name="maxValue" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap><input type="text" name="maxValue_Message" size="16" maxlength="20"></td>
            </tr>
            <tr>
              <td nowrap></td>
              <td nowrap></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    
    
    </td>
    <td>+ - </td>
  </tr>
  
  
</tbody>
</table>
<table width="98%">
  <tr>
    <td class="right"><input type="submit" name="save" value="保存"/> <input type="reset" name="reset" value="充填"/></td>
  </tr>
</table>
</form>
